<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body th:fragment="base">
<form id="form1" th:action="@{/role/saveOrUpdate}" method="post">
<div class="setting_search tabs">
	<input type="hidden" name="id" th:value="${entity?.id}" id="entityId"/>
	<table class="table table-form">
		<thead>
			<tr>
				<td width="8%"></td>
				<td width="22%"></td>
				<td width="8%"></td>
				<td width="22%"></td>
				<td width="8%"></td>
				<td width="22%"></td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td align="right"><span class="form-label">角色名称:</span></td>
				<td><input class="form-control" type="text" name="name" th:title="${entity?.name}" th:value="${entity?.name}" placeholder="请输入"/></td>
			</tr>
			<tr>
				<td align="right"><span class="form-label">角色描述:</span></td>
				<td><input class="form-control" type="text" name="description" th:title="${entity?.description}" th:value="${entity?.description}" placeholder="请输入"/></td>
			</tr>
			<tr>
				<td align="right"><span class="form-label">状态:</span></td>
				<td>
					<select class="form-control col-2" name="enabled">
						<option value="1" th:selected="${entity?.enabled == 1}">启用</option>
						<option value="0" th:selected="${entity?.enabled == 0}">禁用</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td colspan="5">
					<a href="javascript:void(0);" class="btn btn-primary" id="btnQuery" onclick="save()">保存</a>
					<a href="javascript:void(0);" class="btn btn-default border-blue" style="margin-left:15px;" id="btnBack">返回</a>
				</td>
			</tr>
		</tbody>
	</table>
</div>
</form>
</body>
</html>